Repository navigation
Conversation
…iles The plugin-tests job in pr.yml enumerates test files explicitly (plus a few directory globs), so a newly added *.test.mjs that is not registered there silently never runs in CI. This has bitten repeatedly: pin-version tests, the shared capture-utils coverage, and earlier the marketplace static-assert suite all shipped without CI execution until someone noticed. Add a self-registering guard test that parses the workflow's node --test list, expands its globs, and fails — naming the exact files — whenever a test file exists under examples/ or agent-plugins/ that the job would never run. Stale entries and vanished exclusions are reported as well. The guard registers itself in the same list it protects, so the registration path is exercised on every run. Signed-off-by: mac <bishopapril850965@yahoo.com>
This was referenced Sep 6, 2026
Collaborator
|
Closing: #4773 switched plugin-tests in pr.yml to globbed test discovery ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/memory-plugin-shared/plugin-tests-manifest.test.mjs, a guard that parses theplugin-testsjob'snode --testlist in.github/workflows/pr.yml, expands its literal entries and directory globs, and compares the result against every*.test.mjsunderexamples/andagent-plugins/.INTENTIONALLY_NOT_RUNexclusions, so the list cannot rot silently.node --testlist in the same commit — the registration path it demands is exercised by its own landing.Why
The job's explicit-file-list design means an added test that is not registered simply does not exist from CI's point of view. This failure mode has occurred at least three times already:
pr.ymlentry and never ran;examples/memory-plugin-shared/capture-utils.test.mjsin fix(plugins): treat camelCase isError as an error tool result #4724 is currently in the same situation (noted in review there);A guard turns the class of bug into a red check instead of a post-hoc discovery.
Validation
node --test examples/memory-plugin-shared/plugin-tests-manifest.test.mjs→ 1 pass.zz-*.test.mjsmakes the guard fail naming that exact file; removing it restores green.sync.test.mjs→ 5 pass / 0 fail.pr.yml(52 entries including three globs; 73 test files covered, 0 missing, 0 listed-but-absent).Relationship to other work
Complements #4677 (which adds a unit-test lane for the Python side — a separate explicit-list surface that would benefit from the same pattern once it lands).